package zuk.clipvuiviet.getvideo;

import zuk.clipvuiviet.GetDataFromUrl;

public class GetVideo {
	public String getvideo(String url) {
		String htmldata = new GetDataFromUrl().getData(url);
		String data1[] = htmldata.split("'file': '");
		String data2[] = data1[1].split("',");
		data1 = null;
		if(data2[0].length()<15){
			data1 = data2[0].split("");
			data2[1] ="";
			data2[2] ="";
			for(int i = (data1.length-5); i<(data1.length);i++){
				data2[1] += data1[i];
			}
			for(int i = 0; i<(data1.length-5);i++){
				data2[2] += data1[i];
			}
		}else{
			return null;
		}
		return (data2[1]+data2[2]);
	}
}
